package com.ansion.commonchat.contact.bean;

import androidx.annotation.Keep;

import com.ansion.commonchat.contact.AppConstants;
import com.ansion.commonchat.contact.ui.ContactItemType;


@Keep
public class ContactShareBean extends ContactBaseBean {

    @Override
    public int getType() {
        return ContactItemType.ItemTypeShare;
    }


    public ContactShareBean() {
        type = ContactItemType.ItemTypeShare;
        diffContent = AppConstants.CONTACT_CONSTANTS.CONTACT_SHARE_ITEM;
        setUniqueTag(type + diffContent);
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof ContactShareBean)) {
            return false;
        }
        ContactShareBean that = (ContactShareBean) o;
        return type == that.type && diffContent.equals(that.diffContent);
    }
}
